package cn.com.cabinet.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.cabinet.web.entity.Commodities;

public interface CommoditiesDao extends JpaRepository<Commodities, Long>,JpaSpecificationExecutor<Commodities>{

	@Query("select c from Commodities c where c.sellerId = ?1")
	public List<Commodities> getCommoditiesList(Long sellerId);
	
	
}
